.class Lcom/waiqin365/lightapp/kaoqin/b/cl;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemLongClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kaoqin/b/cf;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kaoqin/b/cf;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemLongClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)Z
    .locals 7

    const/4 v6, -0x1

    const/4 v5, 0x1

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->d(Lcom/waiqin365/lightapp/kaoqin/b/cf;)Lcom/waiqin365/lightapp/view/CustomDeleteListView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/CustomDeleteListView;->getHeaderViewsCount()I

    move-result v0

    sub-int v0, p3, v0

    if-gez v0, :cond_1

    :cond_0
    :goto_0
    return v5

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->f(Lcom/waiqin365/lightapp/kaoqin/b/cf;)Lcom/waiqin365/lightapp/kaoqin/a/g;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->d(Lcom/waiqin365/lightapp/kaoqin/b/cf;)Lcom/waiqin365/lightapp/view/CustomDeleteListView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/CustomDeleteListView;->getHeaderViewsCount()I

    move-result v1

    sub-int v1, p3, v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/a/g;->a(I)Lcom/waiqin365/lightapp/kaoqin/c/a/d;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/kaoqin/c/a/d;->i:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    new-instance v1, Lcom/waiqin365/lightapp/im/widget/c;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->a(Lcom/waiqin365/lightapp/kaoqin/b/cf;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentMeActy;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/waiqin365/lightapp/im/widget/c;-><init>(Landroid/content/Context;)V

    new-instance v2, Landroid/widget/PopupWindow;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/widget/c;->a()Landroid/view/View;

    move-result-object v3

    invoke-direct {v2, v3, v6, v6}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    invoke-virtual {v2, v5}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    invoke-virtual {v2, v5}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    new-instance v3, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v3}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {v2, v3}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    new-instance v3, Lcom/waiqin365/lightapp/kaoqin/b/cm;

    invoke-direct {v3, p0, v0, v2}, Lcom/waiqin365/lightapp/kaoqin/b/cm;-><init>(Lcom/waiqin365/lightapp/kaoqin/b/cl;Lcom/waiqin365/lightapp/kaoqin/c/a/d;Landroid/widget/PopupWindow;)V

    invoke-virtual {v1, v3}, Lcom/waiqin365/lightapp/im/widget/c;->a(Landroid/view/View$OnClickListener;)V

    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/b/cn;

    invoke-direct {v0, p0, v2}, Lcom/waiqin365/lightapp/kaoqin/b/cn;-><init>(Lcom/waiqin365/lightapp/kaoqin/b/cl;Landroid/widget/PopupWindow;)V

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/im/widget/c;->b(Landroid/view/View$OnClickListener;)V

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/im/widget/c;->a(Z)V

    invoke-virtual {v1, p3}, Lcom/waiqin365/lightapp/im/widget/c;->a(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    const v3, 0x7f0803af

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->getString(I)Ljava/lang/String;

    move-result-object v0

    const v3, 0x10003

    invoke-virtual {v1, v0, v3}, Lcom/waiqin365/lightapp/im/widget/c;->a(Ljava/lang/String;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    const v3, 0x7f08024b

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->getString(I)Ljava/lang/String;

    move-result-object v0

    const v3, 0x10001

    invoke-virtual {v1, v0, v3}, Lcom/waiqin365/lightapp/im/widget/c;->a(Ljava/lang/String;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    const v3, 0x7f08005f

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->getString(I)Ljava/lang/String;

    move-result-object v0

    const v3, 0x10002

    invoke-virtual {v1, v0, v3}, Lcom/waiqin365/lightapp/im/widget/c;->a(Ljava/lang/String;I)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/widget/c;->f()V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/widget/c;->g()V

    const v0, 0x7f020105

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/im/widget/c;->b(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->d(Lcom/waiqin365/lightapp/kaoqin/b/cf;)Lcom/waiqin365/lightapp/view/CustomDeleteListView;

    move-result-object v0

    const/16 v1, 0x11

    invoke-virtual {v2, v0, v1, v4, v4}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    goto/16 :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->a(Lcom/waiqin365/lightapp/kaoqin/b/cf;)Lcom/waiqin365/lightapp/kaoqin/NewKaoQinApplyFragmentMeActy;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/b/cl;->a:Lcom/waiqin365/lightapp/kaoqin/b/cf;

    const v2, 0x7f080353

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/kaoqin/b/cf;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0
.end method
